<!DOCTYPE html>
<html lang="en">
<head>
<base href="<?php echo base_url() ;?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试</title>
</head>
<body>
<form method="post" action="<?php echo site_url('home/do_exam_ok/'.$this->uri->segment(3)); ?>">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td height="20">&nbsp;</td>
      </tr>
  <?php 
	$i = 1;
  	foreach ($exam as $row): 
  ?>
      <tr>
        <td height="20">&nbsp;<?php echo $i.". ".$row->question; ?></td>
      </tr>
      <tr>
      	<td>&nbsp;<?php
      		$arr_no = array("A","B","C","D","E","F");
      		$j = 0;
      		foreach ($exam_answer[$row->id] as $row_answer) 
      		{
      			echo $arr_no[$j].". ".$row_answer->answer;
      			echo "<input type=checkbox name='answer_".$row->id."[]' value=".$row_answer->id.">&nbsp;&nbsp;";
      			$j++;
      		}		
      	?></td>
      </tr>
      <tr>
      	<td>&nbsp;</td>
      </tr>
  <?php 
	$i++;
  	endforeach;
  ?>
      <tr>
        <td height="20">&nbsp;<input type="submit" name="submit_exam" value="提交"/></td>
      </tr>                  
      </table>
</form>
</body>
</html>